//package pri.zxx.webdemo.interceptor;
//
//import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
//import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
//import org.springframework.stereotype.Component;
//import pri.zxx.webdemo.utils.MDCUtil;
//
///**
// * feign调用其它服务的时候传递requestId
// *
// * @author wangn <15124178@qq.com> 2020/7/15
// */
//
//
//@Component
//@ConditionalOnProperty(value = "wow.log.trace.enable", matchIfMissing = true)
//@ConditionalOnClass(RequestInterceptor.class)
//public class FeignRequestIdInterceptor implements RequestInterceptor {
//    @Override
//    public void apply(RequestTemplate requestTemplate) {
//        requestTemplate.header(MDCUtil.REQUEST_ID, MDCUtil.initRequestId());
//    }
//}
